package com.hongye.house.xxljob;


import com.hongye.house.service.RequirementService;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class BuyJob {

    @Autowired
    private RequirementService requirementService;

    //求购的信息传入es
    @XxlJob("esbuytaskjob")
    public void esbuytaskjob(){
        log.info("求购的信息传入es");
        requirementService.esbuyhouseinsert();
    }
}
